import request from '@/utils/request'

// 查询生产补料单行列表
export function listLinereplenishment(query) {
  return request({
    url: '/wm/linereplenishment/list',
    method: 'get',
    params: query
  })
}

// 查询生产补料单行详细
export function getLinereplenishment(lineId) {
  return request({
    url: '/wm/linereplenishment/' + lineId,
    method: 'get'
  })
}

// 新增生产补料单行
export function addLinereplenishment(data) {
  return request({
    url: '/wm/linereplenishment',
    method: 'post',
    data: data
  })
}

// 修改生产补料单行
export function updateLinereplenishment(data) {
  return request({
    url: '/wm/linereplenishment',
    method: 'put',
    data: data
  })
}

// 删除生产补料单行
export function delLinereplenishment(lineId) {
  return request({
    url: '/wm/linereplenishment/' + lineId,
    method: 'delete'
  })
}

// 查询生产领料单行列表
export function getReplenishmentList(query) {
  return request({
    url: '/wm/linereplenishment/getList',
    method: 'get',
    params: query
  })
}
